if (id == -1)
id = name;
if (id == -1)
id = language;
for (int i = 0; i < parent.size(); i++) {
ResourceEntry e = parent.get(i);
if (id == -1 || id == e.getId()) {
if (e.getData() != null)
entries.add(e);
else {
ResourceDirectory rd = e.getDirectory();
if (rd != null) {
if (type != -1)
type = -1;
else if (name != -1)
name = -1;