if ( nodes.get ( 0 ) instanceof UniqueNode )
{
final List<UniqueNode> uniqueNodes = ( List<UniqueNode> ) nodes;
if ( tree instanceof WebExTree )
{
final WebExTree exTree = ( WebExTree ) tree;
realNodes = new ArrayList<E> ();
for ( final UniqueNode node : uniqueNodes )
{
realNodes.add ( ( E ) exTree.findNode ( node.getId () ) );
}
}
else if ( tree instanceof WebExTree )
{
final WebAsyncTree exTree = ( WebAsyncTree ) tree;
realNodes = new ArrayList<E> ();
for ( final UniqueNode node : uniqueNodes )
{
realNodes.add ( ( E ) exTree.findNode ( node.getId () ) );
}
}
else
{
realNodes = nodes;