Sepperated Measurable and Boxed functions and implemented hibernate validator