String datatype = null;
if (source != null)
datatype = origin.getOutputPipeTypes().get(source.getPort());
if (datatype != null && source != null && dest != null)
return new Edge(datatype, source, dest);
}
catch (ResourceException e)
{
e.printStackTrace();
}