solve the problem of registering restful apis where rest related classes are in a jar file