java api using array of object identifiers