if (format==null) return;
    private void parseFormat(String format) {        if (format.equals("RGBA")) {            imageComponentFormat = ImageComponent.FORMAT_RGBA;            textureFormat = Texture.RGBA;        } else if (format.equals("RGBA4")) {                                              imageComponentFormat = ImageComponent.FORMAT_RGBA4;            textureFormat = Texture.RGBA;        } else if (format.equals("RGB5_A1")) {                                             imageComponentFormat = ImageComponent.FORMAT_RGB5_A1;            textureFormat = Texture.RGBA;        } else if (format.equals("RGB")) {             imageComponentFormat = ImageComponent.FORMAT_RGB;            textureFormat = Texture.RGB;        } else if (format.equals("RGB4")) {            imageComponentFormat = ImageComponent.FORMAT_RGB4;            textureFormat = Texture.RGB;        } else if (format.equals("RGB5")) {                                              imageComponentFormat = ImageComponent.FORMAT_RGB5;            textureFormat = Texture.RGB;        } else if (format.equals("R3_G3_B2")) {                                          imageComponentFormat = ImageComponent.FORMAT_R3_G3_B2;            textureFormat = Texture.RGB;         } else if (format.equals("LUM8_ALPHA8")) {            imageComponentFormat = ImageComponent.FORMAT_LUM8_ALPHA8;            textureFormat = Texture.LUMINANCE_ALPHA;        } else if (format.equals("LUM4_ALPHA4")) {            imageComponentFormat = ImageComponent.FORMAT_LUM4_ALPHA4;            textureFormat = Texture.LUMINANCE_ALPHA;               } else if (format.equals("LUMINANCE")) {            imageComponentFormat = ImageComponent.FORMAT_CHANNEL8;            textureFormat = Texture.LUMINANCE;         } else if (format.equals("ALPHA")) {            imageComponentFormat = ImageComponent.FORMAT_CHANNEL8;            textureFormat = Texture.ALPHA;        }    }