public static CoreType parseCoreType(String type) {
        if (type.equals(CLIENTE.toString()))
            return CLIENTE;
        else if (type.equals(HUB.toString()))
            return HUB;
        else if (type.equals(BASESTATION.toString()))
            return BASESTATION;
        else
            return null;
    }