@Override
public boolean isDropAllowed(DropTargetDragEvent evt) {
IntegrationEntity entity = getDraggedEntity(evt);
if (entity instanceof Transformation) {
Transformation tf = (Transformation) entity;
TransformationActivityNode node = (TransformationActivityNode) getNode();
if (browser.getRequestActivity() == node.getDataObject()) {
return tf.getOutputStructure() instanceof WebServiceRequestStructure;
}
if (browser.getResponseActivity() == node.getDataObject()) {
return tf.getInputStructure() instanceof WebServiceResponseStructure;
}
}
return false;
}