}
@SuppressWarnings("unchecked")
private Object handleInstance(Select s, Method method, Object[] args)
{
Query q = handle.createQuery(s.value()).map(method.getReturnType());
if (args != null) bindArguments(method.isAnnotationPresent(BindBy.class) ?
method.getAnnotation(BindBy.class).value() :
BindType.Position, q, args);
if (args != null) bindArguments(method.isAnnotationPresent(BindBy.class) ?
method.getAnnotation(BindBy.class).value() :
BindType.Position, q, args);
q.setMaxRows(1);
return q.first();
}