common java util implementations and patterns