@Override
	public Extension[] getExtensionsFor(String extensionPointName)
	{
		if(registry == null) {
			scanForExtensions(directory, fileNameFilter);
		}
		
		LinkedList<Extension> extensions = registry.get(extensionPointName);
		if(extensions != null) {
			Extension[] res = new Extension[extensions.size()];
			int i = 0;
			for(Extension ext : extensions) {
				res[i] = ext;
				i++;
			}
			return res;
		} else {
			return new Extension[0];
		}
	}