| 
				
			 | 
			
			
				
				@@ -110,7 +110,7 @@ abstract class LuBusiness { 
			 | 
		
		
	
		
			
			| 
				110
			 | 
			
				110
			 | 
			
			
				
				     { 
			 | 
		
		
	
		
			
			| 
				111
			 | 
			
				111
			 | 
			
			
				
				         $data = static::getDataAccess()->getById($id); 
			 | 
		
		
	
		
			
			| 
				112
			 | 
			
				112
			 | 
			
			
				
				         if (is_null($data)) 
			 | 
		
		
	
		
			
			| 
				113
			 | 
			
				
			 | 
			
			
				
				-            self::notFound(); 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				113
			 | 
			
			
				
				+            self::notFound(static::getResourceName() . " not found"); 
			 | 
		
		
	
		
			
			| 
				114
			 | 
			
				114
			 | 
			
			
				
				         return $data; 
			 | 
		
		
	
		
			
			| 
				115
			 | 
			
				115
			 | 
			
			
				
				     } 
			 | 
		
		
	
		
			
			| 
				116
			 | 
			
				116
			 | 
			
			
				
				  
			 | 
		
		
	
	
		
			
			| 
				
			 | 
			
			
				
				@@ -134,4 +134,10 @@ abstract class LuBusiness { 
			 | 
		
		
	
		
			
			| 
				134
			 | 
			
				134
			 | 
			
			
				
				     { 
			 | 
		
		
	
		
			
			| 
				135
			 | 
			
				135
			 | 
			
			
				
				         return static::getDataAccess()->getAll($page, $perPage); 
			 | 
		
		
	
		
			
			| 
				136
			 | 
			
				136
			 | 
			
			
				
				     } 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				137
			 | 
			
			
				
				+ 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				138
			 | 
			
			
				
				+    public static function getResourceName() 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				139
			 | 
			
			
				
				+    { 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				140
			 | 
			
			
				
				+        $class = preg_replace('/([^\\\\]*)Business$/', '${1}', get_called_class()); 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				141
			 | 
			
			
				
				+        return $class; 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				142
			 | 
			
			
				
				+    } 
			 | 
		
		
	
		
			
			| 
				137
			 | 
			
				143
			 | 
			
			
				
				 } 
			 |