@Path("/checkname/{typename}") @GET public AppMsg checkTypeName(@PathParam("typename") String typeName) throws Exception { Connection con = App.getConnection(); String msg = TypeUtil.validateTypeName(typeName, con, false); con.close(); AppMsg ret = new AppMsg(); if (msg != null) { ret.setStatuscode(1); ret.setMsg(msg); } return ret; }