* set up.
*/
public void execute() throws CayenneException {
// sanity check
if (sourceNode == null) {
throw new CayenneException("Can't port data, source node is null.");
}
if (destinationNode == null) {
throw new CayenneException("Can't port data, destination node is null.");
}
// the simple equality check may actually detect problems with misconfigred nodes
// it is not as dumb as it may look at first
if (sourceNode == destinationNode) {
throw new CayenneException(
"Can't port data, source and target nodes are the same.");
}
if (entities == null || entities.isEmpty()) {
return;