private Class<?>[] getParameterTypesFromArgObj(Object[] parameters,
                                                   List<Object> arglist) 
    {   
        if ((arglist == null) ||
            (arglist.size() == 0))
        {
            return null;
        }
        else
        {
            List<Class<?>> ret = new ArrayList<Class<?>>();
            for (Object p : parameters)
            {
                if (p != null)
                {
                    ret.add(p.getClass());
                }
                else
                {
                    ret.add(Void.TYPE);
                }
            }
            return ret.toArray(new Class[0]);
        }
    }