add weakreference-in-java