def METHOD_NAME(self, oms):
    try:
        impl=self.lookupImplementation(oms)
        #if len(oms.attributes)>0:
        #    impl=copy(impl)
        #    impl.attributes=copy(oms.attributes)
        return impl
    except NotImplementedError:
        #TODO log this, report it
        return oms