Modified Reference.java to support different reference types
Modified ReferenceService tests