Find All Customizations using OpenAPI

Does anyone have a Java OpenAPI code example of finding all the customizations for a given stereotype, find all the derived property specifications associated with the customization, get the behavior from the derived properties and then execute the behaviors?   

 

Also, does anyone know if there's a helper function to get all the derived properties for a given stereotype?