if (!parent.isNodeType("dc:elementSet"))
{
parent.addMixin("dc:elementSet");
}
DocumentReaderService readerService =
(DocumentReaderService)((ExoContainer)ctx.get("exocontainer"))
.getComponentInstanceOfType(DocumentReaderService.class);
if (readerService == null)
{
throw new IllegalArgumentException("No DocumentReaderService configured for current container");
}
Properties props = new Properties();
try
{
props = readerService.getDocumentReader(mimeType).getProperties(data);
}
catch (HandlerNotFoundException e)
{
LOG.debug("Binary value reader error, content by path " + property.getPath() + ", property id "
+ property.getData().getIdentifier() + " : " + e.getMessage());