if (resourcePaths != null) {
for (String currentPath : resourcePaths) {
if (currentPath.endsWith(migrationName)) {
try {
return new String(bundle.bytesForResourcePath(currentPath), _NSStringUtilities.UTF8_ENCODING);
}
catch (UnsupportedEncodingException e) {
log.error(e, e);
}
}