code: public static dnsnsecrec[] get(nitro_service service, String hostname[]) throws Exception{
  		if (hostname !=null && hostname.length>0) {
  			dnsnsecrec response[] = new dnsnsecrec[hostname.length];
  			dnsnsecrec obj[] = new dnsnsecrec[hostname.length];
  			for (int i=0;i<hostname.length;i++) {
  				obj[i] = new dnsnsecrec();
  				obj[i].set_hostname(hostname[i]);
  				response[i] = (dnsnsecrec) obj[i].get_resource(service);
  			}
  			return response;
  		}
  		return null;
  	}
docs: Use this API to fetch dnsnsecrec resources of given names .