if (head.equals("fs")) {
return new MicroKernelImpl(tail);
} else {
final String name = tail;
synchronized (INSTANCES) {
SimpleKernelImpl instance = INSTANCES.get(name);
if (instance == null) {
instance = new SimpleKernelImpl(name) {
@Override
public synchronized void dispose() {
super.dispose();
synchronized (INSTANCES) {
INSTANCES.remove(name);