change syntax of java reflect call