@Override
    public Object convertSourceToTargetClass(final Object o, final Class<?> aClass) {
        return factory.createService(o.toString());
    }
This is {@link StringToServiceConverter}.

@author Misagh Moayyed
@since 6.6.0
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/StringToServiceConverter.java