@Override
  public Class classForName(String className, Map context) throws ClassNotFoundException {
    Class<?> result = null;
    if ((result = classes.get(className)) == null) {
      try {
        result = Resources.classForName(className);
      } catch (ClassNotFoundException e1) {
        if (className.indexOf('.') == -1) {
          result = Resources.classForName("java.lang." + className);
          classes.put("java.lang." + className, result);
        }
      }
      classes.put(className, result);
    }
    return result;
  }
Custom ognl {@code ClassResolver} which behaves same like ognl's
{@code DefaultClassResolver}. But uses the {@code Resources}
utility class to find the target class instead of {@code Class#forName(String)}. 

@see https://github.com/mybatis/mybatis-3/issues/161

@author Daniel Guggi
src/main/java/org/apache/ibatis/scripting/xmltags/OgnlClassResolver.java