try {
String functionName = CommonUtil.getJMethodNameFromStr(axis);
Method axisSelector = AxisSelector.class.getMethod(functionName, Element.class);
return (Elements) axisSelector.invoke(SingletonProducer.getInstance().getAxisSelector(),e);
}catch (NoSuchMethodException e1) {
throw new NoSuchAxisException("this axis is not supported,plase use other instead of '"+axis+"'");
} catch (Exception e2) {
throw new NoSuchAxisException(e2.getMessage());
}
}