Applied Java best practices