String wsdlPublishLoc = epMetaData.getServiceMetaData().getWsdlPublishLocation();
log.debug("Importing resource file: " + impResourceFile.getCanonicalPath());
String wsdlLocFilePath = wsdlLocFile.getParentFile().getCanonicalPath();
SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
ServerConfig serverConfig = spiProvider.getSPI(ServerConfigFactory.class).getServerConfig();
String wsdlDataLoc = serverConfig.getServerDataDir().getCanonicalPath() + File.separatorChar + "wsdl";
//allow wsdl file's parent or server's data/wsdl or overriden wsdl publish directories only
if (impResourceFile.getCanonicalPath().indexOf(wsdlLocFilePath) >= 0
|| impResourceFile.getCanonicalPath().indexOf(wsdlDataLoc) >= 0