public final class MethodFactory implements ObjectFactory
{
public Object instantiate(ObjectBinder context, Object value, Type targetType, Class targetClass)
{
TimeCollector timeCollector= ServiceLocator.getInstance().getTimeCollector();
timeCollector.registerStart("instantiate method");
String methodSignature= (String) value;
String className= methodSignature.substring(0, methodSignature.lastIndexOf("."));
String methodName= methodSignature.substring(methodSignature.lastIndexOf(".") + 1, methodSignature.lastIndexOf(":"));
int parametersCount= Integer.parseInt(methodSignature.substring(methodSignature.lastIndexOf(":") + 1));