@SuppressWarnings("unused") protected FeatureResource loadFile(String path, Map<String, String> attribs) throws IOException { return new DualModeFileResource(getOptPath(path), path, attribs); }
protected FeatureResource loadFile(String path, Map<String, String> attribs) throws IOException { return new DualModeFileResource(getOptPath(path), path); }
protected FeatureResource loadFile(String path, Map<String, String> attribs) throws IOException { return new DualModeFileResource(getOptPath(path), path); }
protected FeatureResource loadResource( String path, Map<String, String> attribs) throws IOException { return new DualModeStaticResource(path, getResourceContent(getOptPath(path)), getResourceContent(path)); }
protected FeatureResource loadResource( String path, Map<String, String> attribs) throws IOException { return new DualModeStaticResource(path, getResourceContent(getOptPath(path)), getResourceContent(path)); }
@SuppressWarnings("unused") protected FeatureResource loadResource( String path, Map<String, String> attribs) throws IOException { String optContent = null, debugContent = null; try { optContent = getResourceContent(getOptPath(path)); } catch (IOException e) { // OK - optContent can be null. Error thrown downstream if both are null. } try { debugContent = getResourceContent(path); } catch (IOException e) { // See above; OK for debugContent to be null. } return new DualModeStaticResource(path, optContent, debugContent, attribs); }