returning empty list instead of null - updated java doc for this change