Here you can find the source of isType(URI uri, String name)
public static boolean isType(URI uri, String name)
//package com.java2s; import java.net.URI; public class Main { public static boolean isType(URI uri, String name) { return uri.toString().startsWith("urn:storageos:" + name); }/*from w w w . java 2 s .c om*/ }