add_friends java and resource