if ( resourceLinkArray != null )
{
for ( int i = 0; i < resourceLinkArray.length; i++ )
{
ResourceLinkDocument.ResourceLink resourceLink = resourceLinkArray[i];
ResourceLink link = new ResourceLink( );
link.setName( resourceLink.getName( ) );
link.setTarget( resourceLink.getTarget( ) );
resourceLinks.add( link );
}
}
return (ResourceLink[]) resourceLinks.toArray( new ResourceLink[0] );