if (object.has("volume")) {
volume = Numeric.intToFloat(object.getInt("volume"), 100.0f);
}
if (object.has("layer")) {
final int idx = object.getInt("layer");
SoundLayer layer;
if (idx < SoundLayer.values().length) {
layer = SoundLayer.values()[idx];
group = ClientSingletonRepository.getSound().getGroup(layer.groupName);
} else {