// joints.
Skeleton ourSkeleton = null; // TODO: maybe not the best way. iterate
final int[] order = new int[jointNames.size()];
for (int i = 0; i < jointNames.size(); i++) {
final String name = jointNames.get(i);
final ParamType paramType = paramTypes.get(i);
final String searcher = paramType == ParamType.idref_param ? "id" : "sid";
Element found = null;
for (final Element root : skeletonRoots) {
if (name.equals(root.getAttributeValue(searcher))) {
found = root;