Java library and practices