Here you can find the source of isRemoteNamespace(URI ns)
public static boolean isRemoteNamespace(URI ns)
//package com.java2s; /**/*from www.j a v a 2 s . c om*/ * Copyright (C) 2010-2014 Fabric project group, Cornell University * * This file is part of Fabric. * * Fabric is free software: you can redistribute it and/or modify it under the * terms of the GNU General Public License as published by the Free Software * Foundation, either version 2 of the License, or (at your option) any later * version. * * Fabric is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. */ import java.net.URI; public class Main { public static boolean isRemoteNamespace(URI ns) { return ns.getScheme().equals("fab") && !ns.isOpaque(); } }