}
public void init(HandlerConfig config) {
Resource handlerResource = config.getResource();
String sourceTypeString = handlerResource.getProperty(RWCF.sourceType).getString();
MimeType sourceType;
try {
sourceType = new MimeType(sourceTypeString);
} catch (MimeTypeParseException ex) {
throw new RuntimeException(ex);
}
if ("true".equals(sourceType.getParameter("localized"))) {
localized = true;
}
log.info("initializing ResourceModeler");
StmtIterator targetTypes = handlerResource
.listProperties(RWCF.targetType);
while (targetTypes.hasNext()) {
String current = targetTypes.nextStatement().getString();
try {
targetTypeSet.add(new MimeType(current));
} catch (MimeTypeParseException e) {
log.error("Invalid MimeType as targetType: " + current);
}
}
//model = handlerResource.getModel();