class DocumentReference extends EntityReference {

    public SpaceReference getLastSpaceReference()
    {
        return (SpaceReference) extractReference(EntityType.SPACE);
    }

    public  DocumentReference(EntityReference reference);
    public  DocumentReference(String wikiName, String spaceName, String pageName);
    public  DocumentReference(String wikiName, List<String> spaceNames, String pageName);
    public  DocumentReference(String pageName, SpaceReference parent);

}