* @param codeFragment the fragment of compiled code for this component
* @param mappingIdentifier positional mapping identifier
* @return {@link JsContent} for this component
*/
private JsContent getJsContent(String codeFragment, String mappingIdentifier) {
JsContent sourceJs = orig.get(getRootSrc(mappingIdentifier));
String sourceName = DEFAULT_JSSOURCE;
FeatureBundle bundle = null;
if (sourceJs != null) {
sourceName = sourceJs.getSource() != null ? sourceJs.getSource() : "";
bundle = sourceJs.getFeatureBundle();
}
return JsContent.fromFeature(codeFragment, sourceName, bundle, null);
}