The call to methods in csp classes is discouraged.
The following code uses a csp class:
class Company.Project.SubPackage.TheClass
{
Method m()
{
set ex=##class(csp.example).myCspMethod()
}
}
In this case, the file example.csp contains a method myCspMethod which should not be called externally from the csp. Instead, you should create, for example, a utility class with methods that can be used by both the csp and other ObjectScript classes.