// Create domain directories.
File domainDir = FileUtils.safeGetCanonicalFile(new File(_domainConfig.getRepositoryRoot(),
_domainConfig.getDomainName()));
try {
if (!domainDir.mkdirs()) {
throw new RepositoryException(_strings.get("directoryCreationError", domainDir));
}
} catch (Exception e) {
throw new RepositoryException(_strings.get("directoryCreationError", domainDir), e);
}
// Extract other jar entries
try {
byte[] buffer = new byte[10000];