Java stuff for fetching related items