*/
if(baseObject == null)
return null;
PdfArray dataObject = (PdfArray)File.resolve(baseObject);
PdfDirectObject pageObject = dataObject.get(0);
if(pageObject instanceof PdfReference)
return new LocalDestination(baseObject,container,name);
else if(pageObject instanceof PdfInteger)
return new RemoteDestination(baseObject,container,name);
else