[opf] implemented class registry and composition class from generics