if(current instanceof JTabbedPane) {
return dock(dockable, port, CENTER_REGION, null);
}
Dockable embedded = findDockable(current);
if(embedded==null || tabbed) {
return dock(dockable, port, CENTER_REGION, null);
}
String embedId = embedded.getPersistentId();
SplitNode lastNode = getLastNode();
if(embedId.equals(lastNode.getSiblingId())) {
region = getRegion(lastNode, current);
ctrlNode = lastNode;
}