Here you can find the source of isType(URI uri, Class clazz)
@SuppressWarnings("rawtypes") public static boolean isType(URI uri, Class clazz)
//package com.java2s; import java.net.URI; public class Main { @SuppressWarnings("rawtypes") public static boolean isType(URI uri, Class clazz) { String simpleName = clazz.getSimpleName(); return uri.toString().startsWith("urn:storageos:" + simpleName); }/* w w w . ja v a 2 s .c o m*/ }