// if we don't specify a texture locator, add a temporary texture locator at the location of this model
// resource..
final boolean addLocator = _textureLocator == null;
final RelativeResourceLocator loc;
if (addLocator) {
loc = new RelativeResourceLocator(resource);
ResourceLocatorTool.addResourceLocator(ResourceLocatorTool.TYPE_TEXTURE, loc);
} else {
loc = null;
}