</BUG>
String id = resource_id;
while (resource == null && id.contains("."))
{
id = id.substring(0, id.lastIndexOf("."));
<BUG>resource = project.findResource(id, MuseResource.class);
</BUG>
}
if (resource == null)
{

public String report_path;
@Override
public void run()
{
MuseProject project = openProject();
MuseResource resource = project.getResource(project.findResource(resource_id, MuseResource.class));
String id = resource_id;
while (resource == null && id.contains("."))
{
id = id.substring(0, id.lastIndexOf("."));
resource = project.getResource(project.findResource(id, MuseResource.class));
}
if (resource == null)
{
