@POST
   @Path("/create/multiple/")
   @Produces(MediaType.APPLICATION_JSON)
   @Consumes(MediaType.APPLICATION_JSON)
   public Response createNewMultipleAccount(Account[] accounts){
	   Response.ResponseBuilder builder = null;
	   try {
		   for(Account account : accounts){
			   registry.register(account);
		   }
           builder = Response.ok();
       }catch(Exception e){
    	   Map<String, String> responseObj = new HashMap<String, String>();
           responseObj.put("error", e.getMessage());
           builder = Response.status(Response.Status.BAD_REQUEST).entity(responseObj);
       }
	   return builder.build();
   }