Logger.warn(FieldServices.class,"Field not found. Unable to load velocity code");
return new ByteArrayInputStream("".toString().getBytes());
}
ContentletAPI conAPI = APILocator.getContentletAPI();
FieldAPI fAPI = APILocator.getFieldAPI();
Contentlet content = conAPI.find(contentInode, APILocator.getUserAPI().getSystemUser(), true);
if(!UtilMethods.isSet(content)){
Logger.warn(FieldServices.class,"Content not found. Unable to load velocity code");
return new ByteArrayInputStream("".toString().getBytes());
}
Object contFieldValueObject = conAPI.getFieldValue(content, field);