InputStream inputStream = attachment.getStream();
if (inputStream == null)
throw new OperationException(operationContext.getOperationName(), "No data stream available for import.");
final POMSessionManager mgr = operationContext.getRuntimeContext().getRuntimeComponent(POMSessionManager.class);
POMSession session = mgr.getSession();
if (session == null)
throw new OperationException(operationName, "MOP session was null");
Workspace workspace = session.getWorkspace();
if (workspace == null)
throw new OperationException(operationName, "MOP workspace was null");
DataStorage dataStorage = operationContext.getRuntimeContext().getRuntimeComponent(DataStorage.class);
if (dataStorage == null)