if (!file.exists())
file = new File("../server/config/orientdb-server-config.xml");
if (!file.exists())
file = new File(OSystemVariableResolver.resolveSystemVariables("${ORIENTDB_HOME}/config/orientdb-server-config.xml"));
if (!file.exists())
throw new OConfigurationException("Can't load file orientdb-server-config.xml to execute remote tests");
FileReader f = new FileReader(file);
final char[] buffer = new char[(int) file.length()];
f.read(buffer);
f.close();